package com.service.impl;

import com.dao.ArticleInfoDao;
import com.domain.Article_info;
import com.service.ArticleInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ArticleInfoServiceImpl implements ArticleInfoService {

    @Autowired
    private ArticleInfoDao articleInfoDao;

    public void save(Article_info articleInfo) {
        articleInfoDao.save(articleInfo);
        //int i = 1/0;
        System.out.println("数据添加成功！！！");
    }
}
